{include file="public/layout" /}

<body class="bodystyle" style="overflow-y: scroll; cursor: default; -moz-user-select: inherit;min-width:auto;">
<div id="append_parent"></div>
<div id="ajaxwaitid"></div>
{include file="notice/left" /}
<div class="page min-hg-c-10" style="min-width: auto; margin-left: 100px;">
    <div class="flexigrid htitx">
        <div class="hDiv">
            <div class="hDivBox">
                <table cellspacing="0" cellpadding="0" style="width: 100%">
                    <thead>
                        <tr>
                            <th class="sign w10"><div class="tc"></div></th>
                            <th class="w10"><div id="anchor-sms" class="tc">买家通知</div></th>
                            <th class=""><div class=""></div></th>
                        </tr>
                    </thead>
                </table>
            </div>
        </div>
        
        <div class="notice-list-box mt20">
            <!-- 账号登录 -->
            <div class="notice-list">
                <div class="card-head" onclick="jumpPage(this);" data-url="{:url('Notice/notice_details_sms', ['send_scene'=>2])}">
                    <div class="card-title">
                        <span>账号登录</span>
                        <p class="notic"></p>
                    </div>
                    <div><i class="iconfont e-right"></i></div>
                </div>
                <div class="list-card-body">
                    <div class="list-card-child">
                        <span>短信通知</span>
                        {notempty name="$sms_tplist[2]['is_open']"}
                            <span class="yes" data-onClick="changeTableVal('sms_template','tpl_id','{$sms_tplist[2]['tpl_id']}','is_open',this);" data-yestext='<i class="iconfont e-duihao" title="点击关闭"></i>' data-notext='<i class="iconfont e-quxiao" title="点击开启"></i>'><i class="iconfont e-duihao"></i></span>
                        {else /}
                            <span class="no" data-onClick="changeTableVal('sms_template','tpl_id','{$sms_tplist[2]['tpl_id']}','is_open',this);" data-yestext='<i class="iconfont e-duihao" title="点击关闭"></i>' data-notext='<i class="iconfont e-quxiao" title="点击开启"></i>'><i class="iconfont e-quxiao"></i></span>
                        {/notempty}
                    </div>
                </div>
            </div>

            <!-- 订单支付通知 -->
            <div class="notice-list">
                <div class="card-head" onclick="jumpPage(this);" data-url="{:url('Notice/notice_details_wechat', ['send_scene'=>30])}">
                    <div class="card-title">
                        <span>订单支付</span>
                        <p class="notic"></p>
                    </div>
                    <div><i class="iconfont e-right"></i></div>
                </div>
                <div class="list-card-body">
                    <div class="list-card-child">
                        <span>微信公众号</span>
                        {notempty name="$wechat_tplist[30]['is_open']"}
                            <span class="yes" data-onClick="changeTableVal('wechat_template','tpl_id','{$wechat_tplist[30]['tpl_id']}','is_open',this);" data-yestext='<i class="iconfont e-duihao" title="点击关闭"></i>' data-notext='<i class="iconfont e-quxiao" title="点击开启"></i>'><i class="iconfont e-duihao"></i></span>
                        {else /}
                            <span class="no" data-onClick="changeTableVal('wechat_template','tpl_id','{$wechat_tplist[30]['tpl_id']}','is_open',this);" data-yestext='<i class="iconfont e-duihao" title="点击关闭"></i>' data-notext='<i class="iconfont e-quxiao" title="点击开启"></i>'><i class="iconfont e-quxiao"></i></span>
                        {/notempty}
                    </div>
                    <div class="list-card-child">
                        <span>短信通知</span>
                        {notempty name="$sms_tplist[30]['is_open']"}
                            <span class="yes" data-onClick="changeTableVal('sms_template','tpl_id','{$sms_tplist[30]['tpl_id']}','is_open',this);" data-yestext='<i class="iconfont e-duihao" title="点击关闭"></i>' data-notext='<i class="iconfont e-quxiao" title="点击开启"></i>'><i class="iconfont e-duihao"></i></span>
                        {else /}
                            <span class="no" data-onClick="changeTableVal('sms_template','tpl_id','{$sms_tplist[30]['tpl_id']}','is_open',this);" data-yestext='<i class="iconfont e-duihao" title="点击关闭"></i>' data-notext='<i class="iconfont e-quxiao" title="点击开启"></i>'><i class="iconfont e-quxiao"></i></span>
                        {/notempty}
                    </div>
                    <div class="list-card-child">
                        <span>邮件发送</span>
                        {notempty name="$smtp_tplist[30]['is_open']"}
                            <span class="yes" data-onClick="changeTableVal('smtp_tpl','tpl_id','{$smtp_tplist[30]['tpl_id']}','is_open',this);" data-yestext='<i class="iconfont e-duihao" title="点击关闭"></i>' data-notext='<i class="iconfont e-quxiao" title="点击开启"></i>'><i class="iconfont e-duihao"></i></span>
                        {else /}
                            <span class="no" data-onClick="changeTableVal('smtp_tpl','tpl_id','{$smtp_tplist[30]['tpl_id']}','is_open',this);" data-yestext='<i class="iconfont e-duihao" title="点击关闭"></i>' data-notext='<i class="iconfont e-quxiao" title="点击开启"></i>'><i class="iconfont e-quxiao"></i></span>
                        {/notempty}
                    </div>
                </div>
            </div>

            <!-- 订单发货通知 -->
            <div class="notice-list">
                <div class="card-head" onclick="jumpPage(this);" data-url="{:url('Notice/notice_details_wechat', ['send_scene'=>31])}">
                    <div class="card-title">
                        <span>订单发货</span>
                        <p class="notic"></p>
                    </div>
                    <div><i class="iconfont e-right"></i></div>
                </div>
                <div class="list-card-body">
                    <div class="list-card-child">
                        <span>微信公众号</span>
                        {notempty name="$wechat_tplist[31]['is_open']"}
                            <span class="yes" data-onClick="changeTableVal('wechat_template','tpl_id','{$wechat_tplist[31]['tpl_id']}','is_open',this);" data-yestext='<i class="iconfont e-duihao" title="点击关闭"></i>' data-notext='<i class="iconfont e-quxiao" title="点击开启"></i>'><i class="iconfont e-duihao"></i></span>
                        {else /}
                            <span class="no" data-onClick="changeTableVal('wechat_template','tpl_id','{$wechat_tplist[31]['tpl_id']}','is_open',this);" data-yestext='<i class="iconfont e-duihao" title="点击关闭"></i>' data-notext='<i class="iconfont e-quxiao" title="点击开启"></i>'><i class="iconfont e-quxiao"></i></span>
                        {/notempty}
                    </div>
                    <div class="list-card-child">
                        <span>短信通知</span>
                        {notempty name="$sms_tplist[31]['is_open']"}
                            <span class="yes" data-onClick="changeTableVal('sms_template','tpl_id','{$sms_tplist[31]['tpl_id']}','is_open',this);" data-yestext='<i class="iconfont e-duihao" title="点击关闭"></i>' data-notext='<i class="iconfont e-quxiao" title="点击开启"></i>'><i class="iconfont e-duihao"></i></span>
                        {else /}
                            <span class="no" data-onClick="changeTableVal('sms_template','tpl_id','{$sms_tplist[31]['tpl_id']}','is_open',this);" data-yestext='<i class="iconfont e-duihao" title="点击关闭"></i>' data-notext='<i class="iconfont e-quxiao" title="点击开启"></i>'><i class="iconfont e-quxiao"></i></span>
                        {/notempty}
                    </div>
                    <div class="list-card-child">
                        <span>邮件发送</span>
                        {notempty name="$smtp_tplist[31]['is_open']"}
                            <span class="yes" data-onClick="changeTableVal('smtp_tpl','tpl_id','{$smtp_tplist[31]['tpl_id']}','is_open',this);" data-yestext='<i class="iconfont e-duihao" title="点击关闭"></i>' data-notext='<i class="iconfont e-quxiao" title="点击开启"></i>'><i class="iconfont e-duihao"></i></span>
                        {else /}
                            <span class="no" data-onClick="changeTableVal('smtp_tpl','tpl_id','{$smtp_tplist[31]['tpl_id']}','is_open',this);" data-yestext='<i class="iconfont e-duihao" title="点击关闭"></i>' data-notext='<i class="iconfont e-quxiao" title="点击开启"></i>'><i class="iconfont e-quxiao"></i></span>
                        {/notempty}
                    </div>
                </div>
            </div>

            <!-- 订单手动退款通知 -->
            <div class="notice-list">
                <div class="card-head" onclick="jumpPage(this);" data-url="{:url('Notice/notice_details_wechat', ['send_scene'=>32])}">
                    <div class="card-title">
                        <span>订单退款</span>
                        <p class="notic"></p>
                    </div>
                    <div><i class="iconfont e-right"></i></div>
                </div>
                <div class="list-card-body">
                    <div class="list-card-child">
                        <span>微信公众号</span>
                        {notempty name="$wechat_tplist[32]['is_open']"}
                            <span class="yes" data-onClick="changeTableVal('wechat_template','tpl_id','{$wechat_tplist[32]['tpl_id']}','is_open',this);" data-yestext='<i class="iconfont e-duihao" title="点击关闭"></i>' data-notext='<i class="iconfont e-quxiao" title="点击开启"></i>'><i class="iconfont e-duihao"></i></span>
                        {else /}
                            <span class="no" data-onClick="changeTableVal('wechat_template','tpl_id','{$wechat_tplist[32]['tpl_id']}','is_open',this);" data-yestext='<i class="iconfont e-duihao" title="点击关闭"></i>' data-notext='<i class="iconfont e-quxiao" title="点击开启"></i>'><i class="iconfont e-quxiao"></i></span>
                        {/notempty}
                    </div>
                    <div class="list-card-child">
                        <span>短信通知</span>
                        {notempty name="$sms_tplist[32]['is_open']"}
                            <span class="yes" data-onClick="changeTableVal('sms_template','tpl_id','{$sms_tplist[32]['tpl_id']}','is_open',this);" data-yestext='<i class="iconfont e-duihao" title="点击关闭"></i>' data-notext='<i class="iconfont e-quxiao" title="点击开启"></i>'><i class="iconfont e-duihao"></i></span>
                        {else /}
                            <span class="no" data-onClick="changeTableVal('sms_template','tpl_id','{$sms_tplist[32]['tpl_id']}','is_open',this);" data-yestext='<i class="iconfont e-duihao" title="点击关闭"></i>' data-notext='<i class="iconfont e-quxiao" title="点击开启"></i>'><i class="iconfont e-quxiao"></i></span>
                        {/notempty}
                    </div>
                    <div class="list-card-child">
                        <span>邮件发送</span>
                        {notempty name="$smtp_tplist[32]['is_open']"}
                            <span class="yes" data-onClick="changeTableVal('smtp_tpl','tpl_id','{$smtp_tplist[32]['tpl_id']}','is_open',this);" data-yestext='<i class="iconfont e-duihao" title="点击关闭"></i>' data-notext='<i class="iconfont e-quxiao" title="点击开启"></i>'><i class="iconfont e-duihao"></i></span>
                        {else /}
                            <span class="no" data-onClick="changeTableVal('smtp_tpl','tpl_id','{$smtp_tplist[32]['tpl_id']}','is_open',this);" data-yestext='<i class="iconfont e-duihao" title="点击关闭"></i>' data-notext='<i class="iconfont e-quxiao" title="点击开启"></i>'><i class="iconfont e-quxiao"></i></span>
                        {/notempty}
                    </div>
                </div>
            </div>

            <!-- 充值成功通知 -->
            <div class="notice-list">
                <div class="card-head" onclick="jumpPage(this);" data-url="{:url('Notice/notice_details_wechat', ['send_scene'=>33])}">
                    <div class="card-title">
                        <span>充值成功</span>
                        <p class="notic"></p>
                    </div>
                    <div><i class="iconfont e-right"></i></div>
                </div>
                <div class="list-card-body">
                    <div class="list-card-child">
                        <span>微信公众号</span>
                        {notempty name="$wechat_tplist[33]['is_open']"}
                            <span class="yes" data-onClick="changeTableVal('wechat_template','tpl_id','{$wechat_tplist[33]['tpl_id']}','is_open',this);" data-yestext='<i class="iconfont e-duihao" title="点击关闭"></i>' data-notext='<i class="iconfont e-quxiao" title="点击开启"></i>'><i class="iconfont e-duihao"></i></span>
                        {else /}
                            <span class="no" data-onClick="changeTableVal('wechat_template','tpl_id','{$wechat_tplist[33]['tpl_id']}','is_open',this);" data-yestext='<i class="iconfont e-duihao" title="点击关闭"></i>' data-notext='<i class="iconfont e-quxiao" title="点击开启"></i>'><i class="iconfont e-quxiao"></i></span>
                        {/notempty}
                    </div>
                    <div class="list-card-child">
                        <span>短信通知</span>
                        {notempty name="$sms_tplist[33]['is_open']"}
                            <span class="yes" data-onClick="changeTableVal('sms_template','tpl_id','{$sms_tplist[33]['tpl_id']}','is_open',this);" data-yestext='<i class="iconfont e-duihao" title="点击关闭"></i>' data-notext='<i class="iconfont e-quxiao" title="点击开启"></i>'><i class="iconfont e-duihao"></i></span>
                        {else /}
                            <span class="no" data-onClick="changeTableVal('sms_template','tpl_id','{$sms_tplist[33]['tpl_id']}','is_open',this);" data-yestext='<i class="iconfont e-duihao" title="点击关闭"></i>' data-notext='<i class="iconfont e-quxiao" title="点击开启"></i>'><i class="iconfont e-quxiao"></i></span>
                        {/notempty}
                    </div>
                    <div class="list-card-child">
                        <span>邮件发送</span>
                        {notempty name="$smtp_tplist[33]['is_open']"}
                            <span class="yes" data-onClick="changeTableVal('smtp_tpl','tpl_id','{$smtp_tplist[33]['tpl_id']}','is_open',this);" data-yestext='<i class="iconfont e-duihao" title="点击关闭"></i>' data-notext='<i class="iconfont e-quxiao" title="点击开启"></i>'><i class="iconfont e-duihao"></i></span>
                        {else /}
                            <span class="no" data-onClick="changeTableVal('smtp_tpl','tpl_id','{$smtp_tplist[33]['tpl_id']}','is_open',this);" data-yestext='<i class="iconfont e-duihao" title="点击关闭"></i>' data-notext='<i class="iconfont e-quxiao" title="点击开启"></i>'><i class="iconfont e-quxiao"></i></span>
                        {/notempty}
                    </div>
                </div>
            </div>
            
            <!-- 积分变动通知 -->
            <div class="notice-list">
                <div class="card-head" onclick="jumpPage(this);" data-url="{:url('Notice/notice_details_sms', ['send_scene'=>34])}">
                    <div class="card-title">
                        <span>积分变动</span>
                        <p class="notic"></p>
                    </div>
                    <div><i class="iconfont e-right"></i></div>
                </div>
                <div class="list-card-body">
                    <div class="list-card-child">
                        <span>短信通知</span>
                        {notempty name="$sms_tplist[34]['is_open']"}
                            <span class="yes" data-onClick="changeTableVal('sms_template','tpl_id','{$sms_tplist[34]['tpl_id']}','is_open',this);" data-yestext='<i class="iconfont e-duihao" title="点击关闭"></i>' data-notext='<i class="iconfont e-quxiao" title="点击开启"></i>'><i class="iconfont e-duihao"></i></span>
                        {else /}
                            <span class="no" data-onClick="changeTableVal('sms_template','tpl_id','{$sms_tplist[34]['tpl_id']}','is_open',this);" data-yestext='<i class="iconfont e-duihao" title="点击关闭"></i>' data-notext='<i class="iconfont e-quxiao" title="点击开启"></i>'><i class="iconfont e-quxiao"></i></span>
                        {/notempty}
                    </div>
                    <div class="list-card-child">
                        <span>邮件发送</span>
                        {notempty name="$smtp_tplist[34]['is_open']"}
                            <span class="yes" data-onClick="changeTableVal('smtp_tpl','tpl_id','{$smtp_tplist[34]['tpl_id']}','is_open',this);" data-yestext='<i class="iconfont e-duihao" title="点击关闭"></i>' data-notext='<i class="iconfont e-quxiao" title="点击开启"></i>'><i class="iconfont e-duihao"></i></span>
                        {else /}
                            <span class="no" data-onClick="changeTableVal('smtp_tpl','tpl_id','{$smtp_tplist[34]['tpl_id']}','is_open',this);" data-yestext='<i class="iconfont e-duihao" title="点击关闭"></i>' data-notext='<i class="iconfont e-quxiao" title="点击开启"></i>'><i class="iconfont e-quxiao"></i></span>
                        {/notempty}
                    </div>
                    <!-- <div class="list-card-child">
                        <span>微信公众号</span>
                        {notempty name="$wechat_tplist[34]['is_open']"}
                            <span class="yes" data-onClick="changeTableVal('wechat_template','tpl_id','{$wechat_tplist[34]['tpl_id']}','is_open',this);" data-yestext='<i class="iconfont e-duihao" title="点击关闭"></i>' data-notext='<i class="iconfont e-quxiao" title="点击开启"></i>'><i class="iconfont e-duihao"></i></span>
                        {else /}
                            <span class="no" data-onClick="changeTableVal('wechat_template','tpl_id','{$wechat_tplist[34]['tpl_id']}','is_open',this);" data-yestext='<i class="iconfont e-duihao" title="点击关闭"></i>' data-notext='<i class="iconfont e-quxiao" title="点击开启"></i>'><i class="iconfont e-quxiao"></i></span>
                        {/notempty}
                    </div> -->
                </div>
            </div>

            <!-- 余额变动通知 -->
            <div class="notice-list">
                <div class="card-head" onclick="jumpPage(this);" data-url="{:url('Notice/notice_details_sms', ['send_scene'=>35])}">
                    <div class="card-title">
                        <span>余额变动</span>
                        <p class="notic"></p>
                    </div>
                    <div><i class="iconfont e-right"></i></div>
                </div>
                <div class="list-card-body">
                    <div class="list-card-child">
                        <span>短信通知</span>
                        {notempty name="$sms_tplist[35]['is_open']"}
                            <span class="yes" data-onClick="changeTableVal('sms_template','tpl_id','{$sms_tplist[35]['tpl_id']}','is_open',this);" data-yestext='<i class="iconfont e-duihao" title="点击关闭"></i>' data-notext='<i class="iconfont e-quxiao" title="点击开启"></i>'><i class="iconfont e-duihao"></i></span>
                        {else /}
                            <span class="no" data-onClick="changeTableVal('sms_template','tpl_id','{$sms_tplist[35]['tpl_id']}','is_open',this);" data-yestext='<i class="iconfont e-duihao" title="点击关闭"></i>' data-notext='<i class="iconfont e-quxiao" title="点击开启"></i>'><i class="iconfont e-quxiao"></i></span>
                        {/notempty}
                    </div>
                    <div class="list-card-child">
                        <span>邮件发送</span>
                        {notempty name="$smtp_tplist[35]['is_open']"}
                            <span class="yes" data-onClick="changeTableVal('smtp_tpl','tpl_id','{$smtp_tplist[35]['tpl_id']}','is_open',this);" data-yestext='<i class="iconfont e-duihao" title="点击关闭"></i>' data-notext='<i class="iconfont e-quxiao" title="点击开启"></i>'><i class="iconfont e-duihao"></i></span>
                        {else /}
                            <span class="no" data-onClick="changeTableVal('smtp_tpl','tpl_id','{$smtp_tplist[35]['tpl_id']}','is_open',this);" data-yestext='<i class="iconfont e-duihao" title="点击关闭"></i>' data-notext='<i class="iconfont e-quxiao" title="点击开启"></i>'><i class="iconfont e-quxiao"></i></span>
                        {/notempty}
                    </div>
                    <!-- <div class="list-card-child">
                        <span>微信公众号</span>
                        {notempty name="$wechat_tplist[35]['is_open']"}
                            <span class="yes" data-onClick="changeTableVal('wechat_template','tpl_id','{$wechat_tplist[35]['tpl_id']}','is_open',this);" data-yestext='<i class="iconfont e-duihao" title="点击关闭"></i>' data-notext='<i class="iconfont e-quxiao" title="点击开启"></i>'><i class="iconfont e-duihao"></i></span>
                        {else /}
                            <span class="no" data-onClick="changeTableVal('wechat_template','tpl_id','{$wechat_tplist[35]['tpl_id']}','is_open',this);" data-yestext='<i class="iconfont e-duihao" title="点击关闭"></i>' data-notext='<i class="iconfont e-quxiao" title="点击开启"></i>'><i class="iconfont e-quxiao"></i></span>
                        {/notempty}
                    </div> -->
                </div>
            </div>
        </div>
    </div>
</div>

{include file="public/footer" /}

<script type="text/javascript">
    $(function(){
        auto_notic_tips();
        /**
        * 自动小提示
        */
        function auto_notic_tips() {
            var html = '<a class="ui_tips" href="javascript:void(0);" onmouseover="layer_tips = layer.tips($(this).parent().find(\'p.notic\').html(), this, {time:100000});" onmouseout="layer.close(layer_tips);">提示</a>';
            $.each($('.card-title > p.notic'), function(index, item){
                var a_length = $(item).prev("a.ui_tips").length;
                if ($(item).html() != '' && 0 == a_length) {
                    $(item).before(html);
                }
            });
        }
    });

    function jumpPage(obj) {
        window.location.href = $(obj).data('url');
    }
</script>